package com.imc.platform.base.pay.http;

import com.imc.core.config.feign.IBaseRequest;
import com.imc.platform.base.pay.http.tuple.PrePayDto;
import com.imc.platform.base.pay.http.tuple.PrePayParams;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by tanweiping on 2018/9/4.
 */
@FeignClient(url = "${service.pay.wx}",name = "wxPayService")
public interface WxPayService extends IBaseRequest {
    /*
    预下单
     */
    @PostMapping(
            value = "/pay/unifiedorder",
            consumes = MediaType.APPLICATION_XML_VALUE,
            produces = MediaType.APPLICATION_XML_VALUE
    )
    String PrePay(@RequestBody PrePayParams params);

}
